package com.shanshan.system.controller;

import com.shanshan.system.service.RecordService;
import com.shanshan.system.vo.RecordContent;
import com.shanshan.system.vo.Result;
import com.shanshan.system.vo.UserVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @author keluoyisi
 * @program: shanshan
 * @description:
 * @date 2023-02-14 13:35:46
 */
@RestController
@RequestMapping("/system/record")
public class RecordController {
    @Autowired
    private RecordService recordService;
    @PostMapping("/addRecord")
    public Result addRecord(@RequestBody RecordContent recordContent){
        return recordService.addRecord(recordContent);
    }

    @PostMapping("/list")
    public Result selectAll(@RequestBody UserVo userVo){
        return recordService.selectAll(userVo);
    }
}
